﻿using System.Text;

namespace up6.utils
{
    public class Base64Encoder
    {
        public static string encode(string v) { 
            return Convert.ToBase64String(Encoding.UTF8.GetBytes(v));
        }
        public static string decode(string v) { 
            var data = Convert.FromBase64String(v);
            return Encoding.UTF8.GetString(data);
        }
    }
}
